import request from '@/utils/request'

/**
 * 1. 注册
 */
export const register = (data) => request.post('/h5/user/register', data)

// 登录
export const login = (data) => request.post('/h5/user/login', data)

// 获取用户信息
export const getUserInfo = () => {
  return request.get('/h5/user/currentUser')
}
